package com.lx.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

//将类将给Spring容器处理，
@Component
public class User {
    //属性注入值
    @Value("LXX")
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
